﻿using System;
using System.Collections.Generic;
using System.Text;
using TerminationCall.Editor.Logic;
using System.Windows.Forms;

namespace TerminationCall.Editor.GUI {

    public static class MouseEventArgsHelper {

        public static PaintTool GetPaintToolByMouseEventArgs(PaintToolSet paintToolSet, MouseEventArgs e) {

            switch (e.Button) {
                case MouseButtons.Left:
                    return paintToolSet.PaintToolLeft;

                case MouseButtons.Right:
                    return paintToolSet.PaintToolRight;

                case MouseButtons.Middle:
                    return paintToolSet.PaintToolMid;

                default:
                    return paintToolSet.PaintToolNone;
            }

        }

    }
}
